home *** CD-ROM | disk | FTP | other *** search
/ Software USA 4 #11 / Software USA Volume 4.11.iso / mac / Educational / mac06 / usr / include / unistd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-30  |  1.8 KB  |  78 lines  |  [TEXT/SPM ]

  1. /* mac06©1997,98 by HNS/DSITRI hns@computer.org
  2. ** unistd.h
  3. */
  4.  
  5. #pragma once
  6.  
  7. #include "size_t.h"
  8.  
  9. #ifndef SEEK_SET
  10. #define SEEK_SET (0)
  11. #define SEEK_CUR (1)
  12. #define SEEK_END (2)
  13. #endif
  14.  
  15. #define STDIN_FILENO    (0)
  16. #define STDOUT_FILENO    (1)
  17. #define STDERR_FILENO    (2)
  18.  
  19. #define R_OK        (4)
  20. #define W_OK        (2)
  21. #define X_OK        (1)
  22. #define F_OK        (0)
  23.  
  24. #define L_ctermid    32
  25.  
  26. int _exit(int code);
  27. int access(const char *name, int mode);
  28. unsigned int alarm(unsigned int seconds);
  29. int chdir(const char *name);
  30. #ifndef _POSIX_SOURCE
  31. int chroot(const char *name);
  32. #endif
  33. int close(int fd);
  34. char *ctermid(char *buf);
  35. int dup(int fd);
  36. int dup2(int old, int nw);
  37. int execl(const char *name, char *arg, ...);
  38. int execle(const char *name, char *arg, ...);    /* last is char **envp */
  39. int execlp(const char *name, char *arg, ...);
  40. int execv(const char *name, char *argv[]);
  41. int execve(const char *name, char *argv[], char *envp[]);
  42. int execvp(const char *name, char *argv[]);
  43. int fork(void);
  44. #ifndef _POSIX_SOURCE
  45. int forkexec(const char *name, char *argv[], char *envp[], long fd[]);
  46. int fsync(int fd);
  47. #endif
  48. char *getcwd(char *buf, int buflen);
  49. int getuid(void);
  50. int getgid(void);
  51. char *getlogin(void);
  52. int getpid(void);
  53. int getppid(void);
  54. int isatty(int fd);
  55. int link(const char *old, const char *nw);
  56. int lseek(int fd, long pos, int where);
  57. #ifndef _POSIX_SOURCE
  58. int nice(int prio);
  59. #endif
  60. int pause(void);
  61. int pipe(int fd[2]);
  62. ssize_t read(int fd, void *bfr, size_t len);
  63. int rmdir(const char *name);
  64. #ifndef _POSIX_SOURCE
  65. char *searchpath(const char *p, const char *name, int mode);
  66. int select(int nfds, int *rfds, int *wfds, int *efds, struct timeval *timeout);
  67. #endif
  68. int setgid();
  69. int setuid();
  70. unsigned int sleep(unsigned int seconds);
  71. #ifndef _POSIX_SOURCE
  72. int sync(void);
  73. #endif
  74. char *ttyname(int fd);
  75. int unlink(const char *name);
  76. ssize_t write(int fd, const void *bfr, size_t len);
  77.  
  78. /* EOF */